package fi.iki.joker.mobilogger.exception;

public class GoogleClientLoginException extends Exception {
	
	/**
	 * The idcode corresponds to the google error codes that can be found from the GoogleClientLoginUtil.
	 * I.e. GoogleClientLoginUtil.ERROR_CODE_*
	 */
	
	private String errorCode;
	
	public GoogleClientLoginException(Exception e) {
		super(e);
		errorCode = null;
	}
	
	public GoogleClientLoginException(String msg, String idcode) {
		super(msg);
		errorCode = idcode;
	}
	
	public String getErrorCode() {
		return errorCode;
	}
	
	public void setErrorCode(String errorCode) {
		this.errorCode  = errorCode;
	}

}
